	/* MAKING CCODES MASTER LIST */

	gen COW=0

	/* A */
	
	** Afghanistan **
	replace Country ="Afghanistan" if regexm(Country,["Afghanistan"])
	replace COW = 700  if Country=="Afghanistan"	
	replace COW = 700  if Country=="AFGHANISTAN, I.S. OF"
	replace COW = 700  if Country=="AFGHANISTAN"	
	replace COW = 700  if Country=="Afghanistan, I.S. Of"
	replace COW = 700  if Country=="AFGHANIS"	

	** Albania **
	replace Country ="Albania" if regexm(Country,["Albania"])
	replace COW = 339 if Country=="Albania"
	replace COW = 339 if Country=="ALBANIA"
	replace COW = 339 if Country=="ALBANIA "	
	
	** Algeria **
	replace Country ="Algeria" if regexm(Country,["Algeria"])
	replace COW = 615 if Country=="Algeria"
	replace COW = 615 if Country=="Algeria "
	replace COW = 615 if Country=="Alteria"
	replace COW = 615 if Country=="ALGERIA"
	 
	* Angola *
	replace Country ="Angola" if regexm(Country,["Angola"])
	replace Country ="Angola" if regexm(Country,["ANGOLA"])	
	replace COW = 540 if Country=="Angola"
	replace COW = 540 if Country=="ANGOLA"
	replace COW = 540 if Country=="Angolo"
	
	* Armenia *
	replace Country ="Armenia" if regexm(Country,["Armenia"])
	replace COW = 371 if Country=="Armenia"
	replace COW = 371 if Country=="ARMENIA"
	replace COW = 371 if Country=="ARMENIA "	
	* Azerbaijan *
	replace Country ="Azerbaijan" if regexm(Country,["Azerbaijan"])
	replace COW = 373 if Country=="Azerbaijan"
	replace COW = 373 if Country=="Azerbaijain"
	replace COW = 373 if Country=="AZERBAIJAN"
	replace COW = 373 if Country=="Azerbaijian"
	
	* Antigua and Barbuda *
	replace Country ="Antigua and Barbuda" if regexm(Country,["Antigua and Barbuda"])
	replace COW = 58 if Country=="Antigua and Barbuda"
	replace COW = 58 if Country=="Antigua And Barbuda"
	replace COW = 58 if Country=="ANTIGUA AND BARBUDA"
	replace COW = 58 if Country=="Antigua & Barbuda"
	replace Country ="Antigua and Barbuda" if COW==58
	replace COW = 58 if Country=="ANTIGUA"
	
	* Andorra 
	replace Country ="Andorra" if regexm(Country,["Andorra"])
	replace Country ="Andorra" if regexm(Country,["ANDORRA"])
	replace COW = 232 if Country=="Andorra"
	
	* Argentina *
	replace Country ="Argentina" if regexm(Country,["Argentina"])
	replace COW = 160 if Country=="Argentina"
	replace COW = 160 if Country=="ARGENTINA"
	replace COW = 160 if Country=="Argenitina"
	replace COW = 160 if Country=="Argentine"

	* Australia *
	replace Country ="Australia" if regexm(Country,["Australia"])
	replace COW = 900 if Country=="Australia"
	replace COW = 900 if Country=="AUSTRALIA"
	
	* Austria *
	replace Country ="Austria" if regexm(Country,["Austria"])
	replace COW = 305 if Country=="Austria"
	replace COW = 305 if Country=="AUSTRIA"
	replace COW = 305 if Country=="AUSTRIA "	

									*******
									/* B */
									*******

	* Bangladesh *
	replace Country ="Bangladesh" if regexm(Country,["Bangladesh"])
	replace Country ="Bangladesh" if regexm(Country,["BANGLADESH"])	
	replace COW = 771  if Country=="Bangladesh"
	replace COW = 771  if Country=="Bangaldesh"
	replace COW = 771  if Country=="Bangaldes"
	replace COW = 771  if Country=="BANGLADESH"
	replace COW = 771  if Country=="BANGLADESH "	
	
	* Benin *
	replace Country ="Benin" if regexm(Country,["Benin"])
	replace Country ="Benin" if regexm(Country,["BENIN"])	
	replace COW = 434  if Country=="Benin"
	replace COW = 434  if Country=="Benin "
	replace COW = 434  if Country=="BENIN"

	* Bhutan *
	replace Country ="Bhutan" if regexm(Country,["Bhutan"])	
	replace Country ="Bhutan" if regexm(Country,["BHUTAN"])		
	replace COW =  760 if Country=="Bhutan"
	replace COW =  760 if Country=="BHUTAN"
	
	* Bahamas *
	replace Country ="Bahamas" if regexm(Country,["Bahamas"])
	replace Country ="Bahamas" if regexm(Country,["BAHAMAS"])	
	replace COW = 31  if Country=="Bahamas, The"
	replace COW = 31  if Country==" Bahamas, The"
	replace COW = 31  if Country=="BAHAMAS, THE"
	replace COW = 31 if Country=="Bahamas"
	replace COW = 31 if Country=="The Bahamas"
	replace Country="Bahamas, The" if COW==31

	* Bahrain *
	replace Country ="Bahrain" if regexm(Country,["Bahrain"])
	replace Country ="Bahrain" if regexm(Country,["BAHRAIN"])	
	replace COW = 692 if Country=="Bahrain"
	replace COW = 692 if Country=="BAHRAIN, KINGDOM OF"
	replace COW = 692 if Country=="Bahrain, Kingdom Of"
	
	* Barbados *
	replace Country ="Barbados" if regexm(Country,["Barbados"])
	replace Country ="Barbados" if regexm(Country,["BARBADOS"])	
	replace COW = 53 if Country=="Barbados"
	replace COW = 53 if Country=="BARBADOS"
	
	* Belize *
	replace Country ="Belize" if regexm(Country,["Belize"])
	replace Country ="Belize" if regexm(Country,["BELIZE"])	
	replace COW = 80 if Country=="Belize"
	replace COW = 80 if Country=="BELIZE"
	
	* Belgium *								
	replace Country ="Belgium" if regexm(Country,["Belgium"])
	replace Country ="Belgium" if regexm(Country,["BELGIUM"])	
	replace COW = 211 if Country=="Belgium"
	replace COW = 211 if Country=="BELGIUM"
	
	* Botswana *
	replace Country ="Botswana" if regexm(Country,["Botswana"])	
	replace Country ="Botswana" if regexm(Country,["BOTSWANA"])		
	replace COW = 571 if Country=="Botswana"
	replace COW = 571 if Country=="Botswana "
	replace COW = 571 if Country=="BOTSWANA"
	replace COW = 571 if Country=="Bophutswana"
	
	* Belarus *
	replace Country ="Belarus" if regexm(Country,["Belarus"])	
	replace Country ="Belarus" if regexm(Country,["BELARUS"])		
	replace COW = 370 if Country=="Belarus"
	replace COW = 370 if Country=="BELARUS"
	replace COW = 370 if Country=="BELARUS "	
	replace COW = 370 if Country=="Berlarus"
	replace COW = 370 if Country=="Belorussia"
	replace COW = 370 if Country==" Belarus"
	
	* Bolivia *
	replace Country ="Bolivia" if regexm(Country,["Bolivia"])
	replace Country ="Bolivia" if regexm(Country,["BOLIVIA"])	
	replace COW = 145 if Country=="Bolivia"
	replace COW = 145 if Country=="BOLIVIA"
	replace COW = 145 if Country=="Bolivia (Plurinational State of)"
	
	* Bosnia *
	replace Country ="Bosnia-Herzegovina" if regexm(Country,["BOSNIA AND HERZEGOVINA"])	
	replace Country ="Bosnia-Herzegovina" if Country=="Bosnia and Herzegovina "
	replace Country ="Bosnia-Herzegovina" if Country=="Bosnia-Herzegovina "
	replace COW = 346 if Country=="Bosnia and Herzegovina"
	replace COW = 346 if Country=="BOSNIA & HERZEGOVINA"
	replace COW = 346 if Country=="BOSNIA AND HERZEGOVINA"	
	replace COW = 346 if Country=="BOSNIA-HERZ"
	replace COW = 346 if Country=="Bosnia & Herzegovina"
	replace COW = 346 if Country=="Bosnia-Herzegovina"
	replace COW = 346 if Country=="Bosnia and Hertzegovina"
	replace COW = 346 if Country=="Bosnia"
	replace COW = 346 if Country=="Bosnia-Hercegovenia"
	replace COW = 346 if Country=="Bosnia and Hercegovina"
	replace COW = 346 if Country=="Bosnia and Herzgegovina"
	replace COW = 346 if Country=="Bosnia and Herzgegovina"	
	replace COW = 346 if Country=="Bosnia Herzegovina"
	replace COW = 346 if Country=="Bosnia-Herz"	
	replace COW = 346 if Country=="Bosnia Herzegovenia"
	replace Country ="Bosnia-Herzegovina" if COW==346

	* Brazil *
	replace Country ="Brazil" if regexm(Country,["Brazil"])
	replace Country ="Brazil" if regexm(Country,["BRAZIL"])	
	replace COW = 140 if Country=="Brazil"
	replace COW = 140 if Country=="BRAZIL"
	replace COW = 140 if Country=="Brasilia"
	replace Country="Brazil" if COW==140

	* Bulgaria *
	replace Country ="Bulgaria" if regexm(Country,["Bulgaria"])
	replace Country ="Bulgaria" if regexm(Country,["BULGARIA"])	
	replace COW = 355 if Country=="Bulgaria"
	replace COW = 355 if Country=="BULGARIA"
	replace COW = 355 if Country=="Bugaria"
	
	* Brunei *
	replace Country ="Brunei" if regexm(Country,["Brunei"])
	replace Country ="Brunei" if regexm(Country,["BRUNEI"])	
	replace COW = 835 if Country=="Brunei"
	replace COW = 835 if Country=="BRUNEI"	
	replace COW = 835 if Country=="Brunei "
	replace COW = 835 if Country=="Brunei Darussalam"
	replace COW = 835 if Country=="BRUNEI DARUSSALAM"
 
	* Burkina Faso *
	replace Country ="Burkina Faso" if Country=="Burldna Faso "
	replace Country ="Burkina Faso" if regexm(Country,["BURKINA FASO"])	
	replace COW =  439 if Country=="Burkina Faso"
	replace COW =  439 if Country=="Burkina Faso "
	replace COW =  439 if Country=="BURKINA FASO" 
	replace COW =  439 if Country==" Upper Volta"
	
	* Burundi *
	replace Country ="Burundi" if regexm(Country,["BURUNDI"])		
	replace COW =  516 if Country=="Burundi"
	replace COW =  516 if Country=="Burundi "
	replace COW =  516 if Country=="BURUNDI"
	replace COW =  516 if Country=="Burunidi"

										*******
										/* C */
										*******
	* Cyprus *		
	replace Country ="Cyprus" if regexm(Country,["Cyprus"])	
	replace Country ="Cyprus" if regexm(Country,["CYPRUS"])		
	replace COW = 352 if Country=="Cyprus"

	* Cambodia *
	replace Country ="Cambodia" if regexm(Country,["Cambodia"])
	replace Country ="Cambodia" if regexm(Country,["CAMBODIA"])	
	replace COW =  811 if Country=="Cambodia"
	replace COW =  811 if Country=="CAMBODIA"
	replace COW =  811 if Country=="Kampuchea"
	replace COW =  811 if Country=="Khmer Republic"
	
	* Cameroon *
	replace Country ="Cameroon" if regexm(Country,["CAMEROON"])	
	replace COW =  471 if Country=="Cameroon"
	replace COW =  471 if Country=="Cameroon "
	replace COW =  471 if Country=="CAMEROON"

	* Canada *
	replace Country ="Canada" if regexm(Country,["Canada"])	
	replace Country ="Canada" if regexm(Country,["CANADA"])		
	replace COW = 20 if Country=="Canada"
	replace COW = 20 if Country=="CANADA"


	* Cape Verde *
	replace Country ="Cape Verde" if regexm(Country,["Cape Verde"])		
	replace COW = 402 if Country=="Cape Verde"
	replace COW = 402 if Country=="Cape Verde "
	replace COW = 402 if Country=="CAPE VERDE"
	replace COW = 402 if Country=="Cape Verde Is" 
	replace COW = 402 if Country=="Capo Verde"
	replace COW = 402 if Country=="Cabo Verde"
	replace COW = 402 if Country=="C. Verde Is."	
	replace COW = 402 if Country=="Cape Verde (Cabo Verde)"
	
	
	* China *	 
	replace Country ="China" if regexm(Country,["China"])	
	replace Country ="China" if regexm(Country,["CHINA"])		
	replace COW = 710 if Country=="China"
	replace COW = 710 if Country=="China "	
	replace COW = 710 if Country=="China, P. R.                  "
	replace COW = 710 if Country=="CHINA,P.R.: MAINLAND"
	replace COW = 710 if Country=="CHINA,P.R.:MACAO"
	replace COW = 710 if Country=="Macao"
	replace COW = 710 if Country=="Macau"
	replace COW = 710 if Country=="MACAU"	
	replace COW = 710 if Country=="Macau "	
	replace COW = 710 if Country=="Hong Kong"
	replace COW = 710 if Country=="HONG KONG"	
	replace COW = 710 if Country=="Hong Kong "	
	replace COW = 710 if Country=="CHINA,P.R.:HONG KONG"
	replace COW = 710 if Country=="China,P.R.: Mainland"
	replace COW = 710 if Country=="China,P.R.:Hong Kong"
	replace COW = 710 if Country=="Hong Kong, China"
	replace COW = 710 if Country=="China,P.R.:Macao"
	replace COW = 710 if Country=="China People's Republic of" 
	replace COW = 710 if Country=="CHINA"
	replace COW = 710 if Country=="PRC"	

	* Colombia *
	replace Country ="Colombia" if regexm(Country,["Colombia"])
	replace Country ="Colombia" if regexm(Country,["COLOMBIA"])	
	replace COW = 100 if Country=="Colombia"
	replace COW = 100 if Country=="Columbia" 
	replace COW = 100 if Country=="Colimbia" 
	replace COW = 100 if Country=="COLOMBIA"
	replace COW = 100 if Country=="Coloumbia"

	* CAR *
	replace Country ="Central African Republic" if regexm(Country,["Central African Republic"])
	replace COW =  482 if Country=="Central African Republic"
	replace COW =  482 if Country=="CENTRAL AFRICAN REPUBLIC"	
	replace COW =  482 if Country=="THE CENTRAL AFRICAN REPUBLIC"		
	replace COW =  482 if Country=="CAR"
	replace COW =  482 if Country=="Central African Rep."
	replace COW =  482 if Country=="CENTRAL AFRICAN REP."
	replace COW =  482 if Country=="The Central African Republic"
	replace COW =  482 if Country=="Central Africa Republic"
	replace COW =  482 if Country=="Central African Rep"
	replace COW =  482 if Country=="Central African Empire"
	replace COW =  482 if Country=="CENTRAL AFRICAN REP"
	replace COW =  482 if Country=="Cent. Af. Rep."	
	
	
	* Chad *
	replace COW =  483 if Country=="Chad"
	replace COW =  483 if Country=="Chad "
	replace COW =  483 if Country=="CHAD"

	* Comoros *
	replace COW =  581 if Country=="Comoros"
	replace COW =  581 if Country=="Comoros "
	replace COW =  581 if Country=="COMOROS"
	replace COW =  581 if Country=="Comoro Is."	

	* DRC *
	replace Country ="Democratic Republic of the Congo" if regexm(Country,["DEMOCRATIC REPUBLIC OF THE CONGO"])	
	replace COW =  490 if Country=="Congo, Dem. Rep."
	replace COW =  490 if Country=="Congo, DR" 
	replace COW =  490 if Country=="Congo(DRC) " 
	replace COW =  490 if Country==" Congo, Dem. Rep."
	replace COW =  490 if Country=="Congo, Dem. Rep.              "
	replace COW =  490 if Country=="CONGO, DEM. REP. OF"
	replace COW =  490 if Country=="CONGO, DEMOCRATIC REPUBLIC OF THE"
	replace COW =  490 if Country=="DEMOCRATIC REPUBLIC OF THE CONGO"
	replace COW =  490 if Country=="Congo, Dem. Rep. Of"
	replace COW =  490 if Country== "Congo, Democratic Republic of the" 
	replace COW =  490 if Country== "Congo Democratic Republic of the"
	replace COW =  490 if Country== "Congo, Democratic Republic of the "
	replace COW =  490 if Country== "Democratic Republic of Congo "
	replace COW =  490 if Country== "Democratic Republic of Congo"
	replace COW =  490 if Country== "Democratic Republic of the Congo"
	replace COW =  490 if Country== "Democratic republic of the Congo"
	replace COW =  490 if Country== "Congo, Democratic Republic of" 
	replace COW =  490 if Country== "Congo, Democratic Repubic of" 
	replace Country ="DRC" if regexm(Country,["DRC"])
	replace COW =  490 if Country== "DRC"
	replace COW =  490 if Country== "Congo (Democratic Republic of the)"
	replace COW =  490 if Country== "Dem. Rep. of Congo"
	replace COW =  490 if Country== "Congo, Democratic Republic" 
	replace COW =  490 if Country== "Congo (Kinshasa)"
	replace COW =  490 if Country== "Congo Kinshasa"
	replace COW =  490 if Country== "Congo (Kinshasa), Democratic Republic of the"
	replace COW =  490 if Country== "DR Congo"
	replace COW =  490 if Country== "Zaire/Congo Dem Rep"
	replace COW =  490 if Country== "Democratic Republic of Congp"
	replace COW =  490 if Country== "Congo. Democratic Republic"
	replace COW =  490 if Country== "Democratic Republic of the Congo "
	replace COW =  490 if Country== "Dem. Rep. of the Congo"
	replace COW =  490 if Country== "Congo (KIN)"
 	replace COW =  490 if Country== "Zaire"	
 	replace COW =  490 if Country== "DEM REP OF CONGO"	
 	replace COW =  490 if Country== "Congo, the Democratic Republic o"
 	replace COW =  490 if Country== "Congo (Kinshasa), Democratic Republic of the "
	replace COW =  490 if Country== "Congo Democratic Republic of" 
	replace COW =  490 if Country== "Congo, Dem. Rep. (Zaire)"
	
	* Republic of the Congo *
	replace COW =  484 if Country== "CONGO"
	replace COW =  484 if Country=="Congo, Rep."
	replace COW =  484 if Country==" Congo, Rep."
	replace COW =  484 if Country=="Congo"
	replace COW =  484 if Country=="congo"
	replace COW =  484 if Country=="CONGO, REPUBLIC OF"
	replace COW =  484 if Country=="CONGO, REPUBLIC OF THE"	
	replace COW =  484 if Country=="Congo, Republic Of"
	replace COW =  484 if Country=="Congo, Republic" 
	replace COW =  484 if Country=="Congo  Republic" 
	replace COW =  484 if Country=="Congo Republic"
	replace COW =  484 if Country=="Congo. Republic"
	replace COW =  484 if Country=="Congo, Republic of" 
	replace COW =  484 if Country=="Congo. Republic of"
	replace COW =  484 if Country=="Republic of the Congo" 
	replace COW =  484 if Country=="Republic of Congo " 
	replace COW =  484 if Country=="Congo Republic of the"  
	replace COW =  484 if Country=="Congo, Republic of the " 
	replace COW =  484 if Country=="Congo, Republic of the"
	replace COW =  484 if Country=="Republic of Congo"
	replace COW =  484 if Country=="Congo (Brazzaville)"
	replace COW =  484 if Country=="Congo-Brazzaville"
	replace COW =  484 if Country=="Congo Brazzaville"
	replace COW =  484 if Country=="Congo (BRA)"
	replace COW =  484 if Country=="Republic of The Congo (Brazzaville)"
	replace COW =  484 if Country==	"Republic of the Congo "
	
	* Cote d'Ivoire *
	replace Country ="Cote d'Ivoire" if regexm(Country,["Cote D'Ivoire"])
	replace Country ="Cote d'Ivoire" if regexm(Country,["Cote d'Ivoire"])	
	replace Country ="Cote d'Ivoire" if regexm(Country,["COTE D' IVOIRE"])	
	replace Country ="Cote d'Ivoire" if regexm(Country,["COTE D‚ÄôIVOIRE"])		
	replace COW = 437  if Country=="Cote d'Ivoire"
	replace COW = 437  if Country==" Cote d’Ivoire"
	replace COW = 437  if Country=="Cote d’Ivoire"
	replace COW = 437  if Country=="Côte d'Ivoire"
	replace COW = 437  if Country=="CÙte díIvoire"
	replace COW = 437  if Country=="Cote díIvoire"
	replace COW = 437  if Country=="Ivory Coast" 
	replace COW = 437  if Country=="Ivory Coast " 
	replace COW = 437  if Country=="Cote D'Ivoire"
	replace COW = 437  if Country=="Cote D’Ivoire"
	replace COW = 437  if Country=="COTE D IVOIRE"
	replace COW = 437  if Country=="Cote D Ivoire"
	replace COW = 437  if Country=="Cote d'Ivoire (Ivory Coast)" 
	replace COW = 437  if Country=="Cote d´Ivoire"
	replace COW = 437  if Country=="Cote DíIvoire"
	replace COW = 437  if Country=="Co?te d?Ivoire " 
	replace COW = 437  if Country=="Cote d Ivoire" 
	replace COW = 437  if Country=="CÌ«te d'Ivoire"
	replace COW = 437  if Country=="Cote d'ivoire"
	replace COW = 437  if Country=="Cote d\'Ivoire"
	replace COW = 437  if Country=="Côte d’Ivoire"
	replace COW = 437  if Country=="Côte d´Ivoire"
	replace COW = 437  if Country=="Côte-d'Ivoire"
	replace COW = 437  if Country=="C��te d'Ivoire"
	replace COW = 437  if regexm(Country,["d'Ivoire"])
	replace COW = 437  if Country=="Cote DÕIvoire"
	replace COW = 437  if Country=="Cote dÕIvoire"
	replace COW = 437  if Country=="COTE D'IVOIRE"
	replace COW = 437  if Country=="COTE D’IVOIRE"
	replace COW = 437  if Country=="Côte dIvoire"

	* Chile *
	replace Country ="Chile" if regexm(Country,["Chile"])	
	replace Country ="Chile" if regexm(Country,["CHILE"])	
	replace COW = 155 if Country=="Chile "
	replace COW = 155 if Country=="Chile"
	replace COW = 155 if Country=="CHILE"

	* Costa Rica *
	replace Country ="Costa Rica" if regexm(Country,["Costa Rica"])
	replace Country ="Costa Rica" if regexm(Country,["COSTA RICA"])	
	replace COW = 94 if Country=="Costa Rica"
	replace COW = 94 if Country=="COSTA RICA"

	* Croatia *
	replace Country ="Croatia" if regexm(Country,["Croatia"])
	replace Country ="Croatia" if regexm(Country,["CROATIA"])	
	replace COW = 344 if Country=="Croatia"
	replace COW = 344 if Country=="CROATIA"

	* Cuba *
	replace Country ="Cuba" if regexm(Country,["Cuba"])
	replace Country ="Cuba" if regexm(Country,["CUBA"])	
	replace COW = 40 if Country=="Cuba"
	replace COW = 40 if Country=="CUBA"

	* Czechoslovakia *
	replace COW = 315 if Country=="Czechoslovakia"
	replace COW = 315 if Country=="Former Czechoslovakia"
	replace COW = 315 if Country=="CZECHOSLOVAKIA"
	
	* Czech Republic *
	replace Country ="Czech Republic" if regexm(Country,["Czech Republic"])	
	replace Country ="Czech Republic" if regexm(Country,["CZECH REPUBLIC"])		
	replace COW = 316 if Country=="Czech Republic"
	replace COW = 316 if Country=="CZECH REPUBLIC"
	replace COW = 316 if Country=="Czech Republic "
	replace COW = 316 if Country=="Czech Rep."
	replace COW = 316 if Country=="Czech Rep"
	replace COW = 316 if Country=="Czech Repubilc"
	replace COW = 316 if Country=="Czech Republik"
	replace COW = 316 if Country=="Czechia"

	* Cyprus
	replace COW = 352 if Country=="Cyprus"
	replace COW = 352 if Country=="CYPRUS"
	replace COW = 352 if Country=="Cyprus: Greek Sector"
	
	
									*******
									/* D */
									*******
	* Djibouti *								
	replace COW = 522 if Country=="Djibouti"
	replace COW = 522 if Country=="Djibouti "
	replace COW = 522 if Country=="DJIBOUTI"
	replace COW = 522 if Country=="Dijibouti"

	* Dominican Republic *
	replace Country ="Dominican Republic" if regexm(Country,["Dominican Republic"])
	replace Country ="Dominican Republic" if regexm(Country,["DOMINICAN REPUBLIC"])		
	replace COW = 42 if Country=="Dominican Republic"
	replace COW = 42 if Country=="The Dominican Republic "	
	replace COW = 42 if Country=="DOMINICAN REPUBLIC"
	replace COW = 42 if Country=="Dominican Rep."
	replace COW = 42 if Country=="Dominica Republic"
	replace COW = 42 if Country=="Dominican Rep"
	replace COW = 42 if Country=="Domincan Republic"
	replace COW = 42 if Country=="Dominican Republic "
	replace COW = 42 if Country=="DOMINICAN REP"
	replace COW = 42 if Country=="Dominican Republic "
	replace COW = 42 if Country=="Dom. Rep."	
	
	* Dominica *
	replace COW = 54 if Country=="Dominica"
	replace COW = 54 if Country=="Domenica"
	replace COW = 54 if Country=="DOMINICA"
	
	* Denmark *
	replace Country ="Denmark" if regexm(Country,["Denmark"])
	replace Country ="Denmark" if regexm(Country,["DENMARK"])	
	replace COW = 390 if Country=="Denmark"
	replace COW = 390 if Country=="Denmark "	
	replace COW = 390 if Country=="Denmark"  
	replace COW = 390 if Country=="Denmar"
	replace COW = 390 if Country=="Demark"
	replace COW = 390 if Country=="DENMARK"
	replace COW = 390 if Country=="Dania"

								*******
								/* E */
								*******

	replace Country ="Ecuador" if regexm(Country,["Ecuador"])
	replace COW = 130 if Country=="Ecuador"
	replace COW = 130 if Country=="ECUADOR"

	** Egypt **
	replace Country ="Egypt" if regexm(Country,["Egypt"])	
	replace COW = 651 if Country=="Egypt, Arab Rep."
	replace COW = 651 if Country==" Egypt, Arab Rep."
	replace COW = 651 if Country=="Egypt"
	replace COW = 651 if Country=="EGYPT"

	* El Salvador *
	replace Country ="El Salvador" if regexm(Country,["El Salvador"])
	replace Country ="El Salvador" if regexm(Country,["EL SALVADOR"])	
	replace COW = 92 if Country=="El Salvador"
	replace COW = 92 if Country=="EL SALVADOR"
	replace COW = 92 if Country=="Salvador"

	* Eritrea *
	replace Country ="Eritrea" if regexm(Country,["Eritrea"])
	replace COW = 531 if Country=="Eritrea"
	replace COW = 531 if Country=="ERITREA"
	replace COW = 531 if Country=="Etritrea"



	* Equitorial Guinea *
	replace Country ="Equatorial Guinea" if regexm(Country,["Equatorial Guinea"])	
	replace Country ="Equatorial Guinea" if regexm(Country,["EQUATORIAL GUINEA"])		
	replace COW = 411 if Country=="Equatorial Guinea"
	replace COW = 411 if Country=="EQUATORIAL GUINEA"
	replace COW = 411 if Country=="Equatorial Quinea" 
	replace COW = 411 if Country=="Equitorial Guinea" 
	replace COW = 411 if Country=="Equatorial Guinea " 
	replace COW = 411 if Country=="EQUATORI"
	replace COW = 411 if Country=="Eq. Guinea"
	
	* Estonia *
	replace Country ="Estonia" if regexm(Country,["Estonia"])
	replace Country ="Estonia" if regexm(Country,["ESTONIA"])	
	replace COW = 366 if Country=="Estonia"
	replace COW = 366 if Country=="ESTONIA"
	
	* Ethiopia *
	replace Country ="Ethiopia" if regexm(Country,["Ethiopia"])	
	replace Country ="Ethiopia" if regexm(Country,["ETHIOPIA"])		
	replace Country="Ethiopia"  if Country=="Ethiophia"
	replace COW = 530 if Country=="Ethiopia"
	replace COW = 530 if Country=="Ethiopia "
	replace COW = 530 if Country=="ETHIOPIA"
	replace COW = 530 if Country=="Ethiopia FDR"	
	replace COW = 530 if Country=="Ethiopia PDR"
	
								*******
								/* F */
								*******

	* Fiji *							
	replace Country ="Fiji" if regexm(Country,["Fiji"])
	replace Country ="Fiji" if regexm(Country,["FIJI"])	
	replace COW = 950 if Country=="Fiji"
	replace COW = 950 if Country=="FIJI"

	* Finland *
	replace Country ="Finland" if regexm(Country,["Finland"])
	replace Country ="Finland" if regexm(Country,["FINLAND"])	
	replace COW = 375 if Country=="Finland"
	replace COW = 375 if Country=="FINLAND"

	* France *
	replace Country ="France" if regexm(Country,["France"])
	replace Country ="France" if regexm(Country,["FRANCE"])	
	replace COW = 220 if Country=="France"
	replace COW = 220 if Country=="FRANCE"

								*******
								/* G */
								*******
	* Gabon *
	replace Country ="Gabon" if regexm(Country,["Gabon"])	
	replace Country ="Gabon" if regexm(Country,["GABON"])		
	replace COW = 481 if Country=="Gabon"
	replace COW = 481 if Country=="GABON"
	replace COW = 481 if Country=="Gabon "

	* Grenada *
	replace Country ="Grenada" if regexm(Country,["Grenada"])
	replace COW = 55 if Country=="Grenada"
	replace COW = 55 if Country=="GRENADA"

	* GERMANY *
	replace Country ="Germany" if regexm(Country,["Germany"])
	replace Country ="Germany" if regexm(Country,["GERMANY"])	
	replace COW = 255 if Country=="Germany"
	replace COW = 255 if Country=="GERMANY1"	
	replace COW = 255 if Country=="Germany "
	replace COW = 255 if Country=="East and West Germany"
	replace COW = 255 if Country=="GERMANY"
	replace COW = 255 if Country=="German"	
	
	* East Germany *
	replace COW = 265 if Country=="Germany, E."
	replace COW = 265 if Country=="Germany, E. " 
	replace COW = 265 if Country=="GERMANY EAST"
	replace COW = 265 if Country=="Germany, East"	
	replace COW = 265 if Country=="GDR" 	
	replace COW = 265 if Country=="German DR"	
	replace COW = 265 if Country=="German Democratic Republic"	
	replace COW = 265 if Country=="East Germany"	
	
	* West Germany *
	replace COW = 260 if Country=="Germany, W."
	replace COW = 260 if Country=="Germany, W. "
	replace COW = 260 if Country=="German FR"
	replace COW = 260 if Country=="West Germany"
	replace COW = 260 if Country=="GERMANY WEST"
	replace COW = 260 if Country=="Germany, West"	
	replace COW = 260 if Country=="FRG/Germany"	
	replace COW = 260 if Country=="German Federal Republic"
	
	* Greece *
	replace Country ="Greece" if regexm(Country,["Greece"])
	replace Country ="Greece" if regexm(Country,["GREECE"])	
	replace COW = 350 if Country=="Greece"
	replace COW = 350 if Country=="GREECE"

	* Georgia *
	replace Country ="Georgia" if regexm(Country,["Georgia"])
	replace Country ="Georgia" if regexm(Country,["GEORGIA"])	
	replace COW = 372 if Country=="Georgia"
	replace COW = 372 if Country=="GEORGIA"

	* Guatemala *
	replace Country ="Guatemala" if regexm(Country,["Guatemala"])
	replace Country ="Guatemala" if regexm(Country,["GUATEMALA"])	
	replace COW = 90 if Country=="Guatemala"
	replace COW = 90 if Country=="GUATEMALA"
	
	* Guyana *
	replace Country ="Guyana" if regexm(Country,["Guyana"])
	replace COW = 110 if Country=="Guyana"
	replace COW = 110 if Country=="GUYANA"
	
	* Gambia * 
	replace Country ="Gambia" if regexm(Country,["Gambia"])	
	replace Country ="Gambia" if regexm(Country,["GAMBIA"])		
	replace COW = 420 if Country=="Gambia, The"
	replace COW = 420 if Country==" Gambia, The"
	replace COW = 420 if Country=="GAMBIA, THE"
	replace COW = 420 if Country=="Gambia The" 
	replace COW = 420 if Country=="Gambia, the"
	replace COW = 420 if Country=="Gambia"
	replace COW = 420 if Country=="THE GAMBIA"	
	replace COW = 420 if Country=="Gambia "
	replace COW = 420 if Country=="The Gambia"
	replace Country="Gambia" if COW==420
	replace COW = 420 if Country=="GAMBIA"	
	
	*Ghana *
	replace Country ="Ghana" if regexm(Country,["Ghana"])	
	replace Country ="Ghana" if regexm(Country,["GHANA"])	
	replace COW = 452 if Country=="Ghana"
	replace COW = 452 if Country=="Ghana "
	replace COW = 452 if Country=="GHANA"
	replace COW = 452 if Country=="ghana"

	replace COW = 438 if Country=="Guinea"
	replace COW = 438 if Country=="Guinea "
	replace COW = 438 if Country=="GUINEA"

	* Guinea-Bissau *
	replace Country ="Guinea-Bissau" if regexm(Country,["Guinea-Bissau"])
	replace COW = 404 if Country=="Guinea-Bissau"
	replace COW = 404 if Country=="GUINEA-BISSAU"
	replace COW = 404 if Country=="Guinea Bissau"
	replace COW = 404 if Country=="GuineaBissau"
	
	replace COW = 404 if Country=="GUINEA B"

								*******
								/* H */
								******
								
	* Haiti *
	replace Country ="Haiti" if regexm(Country,["Haiti"])
	replace Country ="Haiti" if regexm(Country,["HAITI"])	
	replace COW = 41 if Country=="Haiti"
	replace COW = 41 if Country=="HAITI"

	* Honduras *
	replace Country ="Honduras" if regexm(Country,["Honduras"])
	replace Country ="Honduras" if regexm(Country,["HONDURAS"])	
	replace COW = 91 if Country=="Honduras"
	
	replace COW = 91 if Country=="HONDURAS"

	* Hungary *
	replace Country ="Hungary" if regexm(Country,["Hungary"])
	replace Country ="Hungary" if regexm(Country,["HUNGARY"])	
	replace COW = 310 if Country=="HUNGARY"
	replace COW = 310 if Country=="Hungary"
	replace COW = 310 if Country=="Hungaria"

									*******
									/* I */
									*******

	* Iceland *								
	replace Country ="Iceland" if regexm(Country,["Iceland"])								
	replace COW = 395 if Country=="Iceland"
	replace COW = 395 if Country=="ICELAND"
	replace COW = 395 if Country=="ICeland"
		
	* India *	
	replace Country ="India" if regexm(Country,["India"])
	replace Country ="India" if regexm(Country,["INDIA"])	
	replace COW = 750 if Country=="India"
	replace COW = 750 if Country=="INDIA"
	replace COW = 750 if Country=="Nindia"

	* Indonesia *
	replace Country ="Indonesia" if regexm(Country,["Indonesia"])
	replace Country ="Indonesia" if regexm(Country,["INDONESIA"])	
	replace COW = 850 if Country=="Indonesia"
	replace COW = 850 if Country=="INDONESIA"
	replace COW = 850 if Country=="indonesia"

	replace Country ="Iran" if regexm(Country,["Iran"])
	replace COW = 630 if Country=="Iran, Islamic Rep."
	replace COW = 630 if Country==" Iran, Islamic Rep."
	replace COW = 630 if Country=="IRAN, I.R. OF"
	replace COW = 630 if Country=="Iran, I.R. Of"
	replace COW = 630 if Country=="Iran, Islamic Republic of"
	replace COW = 630 if Country=="Iran (Islamic Republic of)"
	replace COW = 630 if Country=="Iran"
	replace COW = 630 if Country=="IRan"
	replace COW = 630 if Country=="IRAN"

	replace Country ="Iraq" if regexm(Country,["Iraq"])
	replace Country ="Iraq" if regexm(Country,["IRAQ"])	
	replace COW = 645 if Country=="Iraq"
	replace COW = 645 if Country=="IRAQ"

	replace COW = 205 if Country=="Ireland"
	replace COW = 205 if regexm(Country,["Ireland"])
	replace COW = 205 if Country=="IRELAND"

	* Israel
	replace Country ="Israel" if regexm(Country,["Israel"])
	replace Country ="Israel" if regexm(Country,["ISRAEL"])	
	replace COW = 666 if Country=="Israel"
	replace COW = 666 if Country=="Israel "	
	replace COW = 666 if Country=="ISRAEL"
	replace COW = 666 if Country=="Isreal"
	
	* Italy *
	replace Country ="Italy" if regexm(Country,["Italy"])
	replace Country ="Italy" if regexm(Country,["ITALY"])	
	replace COW = 325 if Country=="Italy"
	replace COW = 325 if Country=="Italy "	
	replace COW = 325 if Country=="ITALY"

									*******
									/* J */
									*******
	* Japan
	replace Country ="Japan" if regexm(Country,["Japan"])
	replace Country ="Japan" if regexm(Country,["JAPAN"])	
	replace COW = 740 if Country=="Japan"
	replace COW = 740 if Country=="Japan "
	replace COW = 740 if Country=="JAPAN"
	replace COW = 740 if Country=="japan"

	* Jamaica *
	replace Country ="Jamaica" if regexm(Country,["Jamaica"])
	replace Country ="Jamaica" if regexm(Country,["JAMAICA"])	
	replace COW = 51 if Country=="Jamaica"
	replace COW = 51 if Country=="JAMAICA"

	* Jordan
	replace Country ="Jordan" if regexm(Country,["Jordan"])
	replace Country ="Jordan" if regexm(Country,["JORDAN"])	
	replace COW = 663 if Country=="Jordan"
	replace COW = 663 if Country=="JORDAN"
	 
								*******
								/* K */
								*******
								
	*Kazakhstan							
	replace Country ="Kazakhstan" if regexm(Country,["Kazakhstan"])
	replace Country ="Kazakhstan" if regexm(Country,["KAZAKHSTAN"])	
	replace COW = 705 if Country=="Kazakhstan"
	replace COW = 705 if Country=="KAZAKHSTAN"
	replace COW = 705 if Country=="Kazakhstan "
	replace COW = 705 if Country=="Kazakastan"
	replace COW = 705 if Country=="Kazahkstan"
	replace COW = 705 if Country=="Kazakstan"
	replace COW = 705 if Country=="Kazakhstan*"

	replace COW = 946 if Country=="Kiribati"
	replace COW = 946 if Country=="KIRIBATI"
	
	* Kenya 
	replace Country ="Kenya" if regexm(Country,["Kenya"])	
	replace Country ="Kenya" if regexm(Country,["KENYA"])	
	replace COW = 501 if Country=="Kenya"
	replace COW = 501 if Country=="Kenya "
	replace COW = 501 if Country=="KENYA"
	
	* South Korea *
	replace Country ="Republic of Korea" if regexm(Country,["Republic of Korea"])	
	replace Country ="South Korea" if regexm(Country,["South Korea"])
	replace COW = 732 if Country=="Korea, Rep."
	replace COW = 732 if Country==" Korea, Rep."
	replace COW = 732 if Country=="Korea"
	replace COW = 732 if Country=="Korea "
	replace COW = 732 if Country=="KOREA"
	replace COW = 732 if Country=="KOREA, REPUBLIC OF"
	replace COW = 732 if Country=="REPUBLIC OF KOREA"	
	replace COW = 732 if Country=="REPUBLIC OF KOREA "		
	replace COW = 732 if Country=="Korea, South                  "
	replace COW = 732 if Country=="Republic of Korea (South Korea)"
	replace COW = 732 if Country=="Republic of Korea"
	replace COW = 732 if Country=="Korea (Republic of)"
	replace COW = 732 if Country=="Korea, Republic" 
	replace COW = 732 if Country=="Korean Rep."
	replace COW = 732 if Country=="Korea, Republik of"
	replace COW = 732 if Country=="Korea, Republic of"
	replace COW = 732 if Country=="South Korea"
	replace COW = 732 if Country=="Korea, South"
	replace COW = 732 if Country=="Korea South"
	replace COW = 732 if Country=="korea"
	replace COW = 732 if Country=="Korea Rep"
	replace COW = 732 if Country=="Korea (South)"
	replace COW = 732 if Country=="Rep. of Korea"
	replace COW = 732 if Country=="KOREA S-(ROK)"
	replace COW = 732 if Country=="Korea Republic of"	
	replace COW = 732 if Country=="ROK"	
	
	
	* North Korea *
	replace Country ="North Korea" if regexm(Country,["North Korea"])
	replace Country ="North Korea" if regexm(Country,["NORTH KOREA"])	
	replace COW = 731 if Country=="Korea, Democratic People's Rep. of"
	replace COW = 731 if Country=="Korea, Dem. Rep."
	replace COW = 731 if Country=="Democratic People's Republic of Korea"
	replace COW = 731 if Country=="Korea, DPR" 
	replace COW = 731 if Country==" Korea, Dem. Rep."
	replace COW = 731 if Country=="Korea, Democratic People's Republic of"
	replace COW = 731 if Country=="NORTH KOREA"
	replace COW = 731 if Country=="KOREA, DEMOCRATIC PEOPLE‚ÄôS REPUBLIC OF"
	replace COW = 731 if Country=="KOREA, DEMOCRATIC PEOPLE’S REPUBLIC OF"	
	replace COW = 731 if Country=="North Korea"
	replace COW = 731 if Country=="Korea, North"
	replace COW = 731 if Country=="Korea North"
	replace COW = 731 if Country=="Korea, North                  "
	replace COW = 731 if Country=="DPRK"
	replace COW = 731 if Country=="Korea Dem P Rep"
	replace COW = 731 if Country=="DPR of Korea"
	replace COW = 731 if Country=="Korea (North)"
	replace COW = 731 if Country=="KOREA N-(DPR)"
	replace COW = 731 if Country=="Korea, Democratic People's Repub"
	replace COW = 731 if Country=="Korea, Dem. People’s Rep."
	replace COW = 731 if Country=="Korea, Dem. People's Rep. of"
	replace COW = 731 if Country=="Korea (Democratic People's Rep. of)"
	replace COW = 731 if Country=="PRK"	
	
	* Kosovo *
	replace Country ="Kosovo" if regexm(Country,["Kosovo"])
	replace Country ="Kosovo" if regexm(Country,["KOSOVO"])	
	replace COW = 347 if Country=="Kosovo"
	replace COW = 347 if Country=="KOSOVO"	
	
	*KUWAIT 
	replace Country ="Kuwait" if regexm(Country,["Kuwait"])	
	replace Country ="Kuwait" if regexm(Country,["KUWAIT"])		
	replace COW = 690 if Country=="Kuwait"
	replace COW = 690 if Country=="kuwait"
	replace COW = 690 if Country=="KUWAIT"
	replace COW = 690 if Country=="Kuweit"

	* Kyrgyzstan *
	replace Country ="Kyrgyzstan" if regexm(Country,["Kyrgyzstan"])
	replace Country ="Kyrgyzstan" if regexm(Country,["Kyrgyz Republic"])
	replace Country ="Kyrgyzstan" if regexm(Country,["KYRGYZ REPUBLIC"])	
	replace COW = 703 if Country=="Kyrgyz Republic"
	replace COW = 703 if Country=="Kyrgyz Republic "
	replace COW = 703 if Country=="KYRGYZ REPUBLIC"
	replace COW = 703 if Country=="Kyrgyzstan" 
	replace COW = 703 if Country=="Kyrgystan"
	replace COW = 703 if Country=="Kyrgygstan"
	replace COW = 703 if Country=="Kyrgsztan"
	replace COW = 703 if regexm(Country,["Kyrgzstan"])
	replace COW = 703 if Country=="Krygyzstan"
	replace COW = 703 if Country=="Kyrgyz Rep"
	replace COW = 703 if Country=="Kyrgzystan"
	replace COW = 703 if Country=="KYRGYZSTAN"

								*******
								/* L */
								*******

								
		replace COW = 223 if Country=="Liechtenstein"
		replace COW = 223 if Country=="LIECHTENSTEIN"
		replace COW = 223 if Country=="LIECHTSTEIN"
	
		replace COW = 212 if Country=="Luxembourg"
		replace COW = 212 if Country=="LUXEMBOURG"

		*Laos *
		replace Country ="Laos" if regexm(Country,["Laos"])
 		replace Country ="Laos" if regexm(Country,["Lao"])
		replace Country ="Laos" if regexm(Country,["LAOS"])		
		replace COW = 812 if Country=="Laos"
		replace COW = 812 if Country=="Lao PDR"
		replace COW = 812 if Country=="LAO PEOPLE S DEM.REP" 
		replace COW = 812 if Country=="Lao People S Dem.Rep"
		replace COW = 812 if Country=="Lao People's Democratic Republic" 
		replace COW = 812 if Country=="Lao"
		replace COW = 812 if Country=="Lao P Dem Rep"
		replace COW = 812 if Country=="Lao People's Dem. Rep."
		replace COW = 812 if Country=="LAOS"

		* Lesotho *
		replace Country ="Lesotho" if regexm(Country,["Lesotho"])
		replace Country = "Lesotho" if Country=="Lethotho" 
		replace COW = 570 if Country=="Lesotho"
		replace COW = 570 if Country=="Lesotho "
		replace COW = 570 if Country=="LESOTHO"

		* Liberia 
		replace Country ="Liberia" if regexm(Country,["Liberia"])
		replace Country ="Liberia" if regexm(Country,["LIBERIA"])		
		replace COW = 450 if Country=="Liberia"
		replace COW = 450 if Country=="Liberia "
		replace COW = 450 if Country=="LIBERIA"
		replace Country="Liberia" if COW==450

		* Latvia
		replace Country ="Latvia" if regexm(Country,["Latvia"])		
		replace Country ="Latvia" if regexm(Country,["LATVIA"])				
		replace COW = 367 if Country=="Latvia"
		replace COW = 367 if Country=="Latvia "		
		replace COW = 367 if Country==" Latvia"
		replace COW = 367 if Country=="LATVIA"
		replace COW = 367 if Country=="Lativa"
		
		* Lebanon *
		replace Country ="Lebanon" if regexm(Country,["Lebanon"])
		replace Country ="Lebanon" if regexm(Country,["LEBANON"])		
		replace COW = 660 if Country=="Lebanon"
		replace COW = 660 if Country=="LEBANON"
		
		* Libya
		replace Country ="Libya" if regexm(Country,["LIBYA"])	
		replace Country ="Libya" if regexm(Country,["Libya"])			
		replace COW = 620 if Country=="Libya"
		replace COW = 620 if Country=="LIBYA"	
		replace COW = 620 if Country=="Libyan Arab Jamah"
		replace COW = 620 if Country=="Libyan Arab Jamahiriya"
		

		* Lithuania *
		replace Country ="Lithuania" if regexm(Country,["Lithuania"])
		replace Country ="Lithuania" if regexm(Country,["LITHUANIA"])		
		replace COW = 368 if Country=="Lithuania"
		replace COW = 368 if Country=="Lithuania "	
		replace COW = 368 if Country=="LITHUANIA"
		replace COW = 368 if Country=="Lithunania"

									*******
									/* M */
									*******
									
	replace Country ="Macedonia" if regexm(Country,["Macedonia"])
	replace Country ="Macedonia" if regexm(Country,["MACEDONIA"])	
	replace COW = 343 if Country=="Macedonia, FYR"
	replace COW = 343 if Country=="Macedonia"
	replace COW = 343 if Country==" Macedonia, FYR"
	replace COW = 343 if Country=="MACEDONIA, FYR"
	replace COW = 343 if Country=="Macedonia, Fyr"
	replace COW = 343 if Country=="Macedonia, The former Yugoslav Republic of"
	replace COW = 343 if Country=="Macedonia, FYR                "
	replace COW = 343 if Country=="Macdonia"
	replace COW = 343 if Country=="The former Yugoslav Republic of Macedonia"
	replace COW = 343 if Country=="FYROM"
	replace COW = 343 if Country=="MACEDONIA"	
	
	*Madagascar
	replace Country ="Madagascar" if regexm(Country,["Madagascar"])
	replace COW = 580 if Country=="Madagascar"
	replace COW = 580 if Country=="MADAGASCAR"
	replace COW = 580 if Country=="Malagasy Republic"

	replace Country ="Maldives" if regexm(Country,["Maldives"])
	replace COW = 781 if Country=="Maldives"
	replace COW = 781 if Country=="The Maldives"
	replace COW = 781 if Country=="MALDIVES"
	replace COW = 781 if Country=="THE MALDIVES"	
	
	*Marshall Islands
	replace COW = 983 if Country=="Marshall Islands"
	replace COW = 983 if Country=="Marshall Is"
	replace COW = 983 if Country=="MARSHALL ISLANDS"
	
	* Micronesia *
	replace Country ="Micronesia" if regexm(Country,["Micronesia"])
	replace COW = 987 if Country=="Micronesia, Fed. Sts."
	replace COW = 987 if Country=="Micronesia"
	replace COW = 987 if Country==" Micronesia, Fed. Sts."
	replace COW = 987 if Country=="Micronesia, Fed. States"
	replace COW = 987 if Country=="Federated States of Micronesia"
	replace COW = 987 if Country=="Micronesia, Federated States of"
	replace COW = 987 if Country=="Micronesia (Federated States of)"
	replace COW = 987 if Country=="MICRONESIA"
	replace COW = 987 if Country=="MICRONESIA, FEDERATED STATES OF"	
	
	*Malawi
	replace Country ="Malawi" if regexm(Country,["Malawi"])	
	replace Country ="Malawi" if regexm(Country,["MALAWI"])		
	replace Country="Malawi" if Country=="Malawy"
	replace COW = 553 if Country=="Malawi"
	replace COW = 553 if Country=="Malawi "
	replace COW = 553 if Country=="MALAWI"
	replace COW = 553 if Country=="Malwi"

	* Mali
	replace Country ="Mali" if regexm(Country,["Mali"])		
	replace Country ="Mali" if regexm(Country,["MALI"])			
	replace COW = 432 if Country=="Mali"
	replace COW = 432 if Country=="MALI"
	replace COW = 432 if Country=="Mali "

	replace COW = 338 if Country=="Malta"
	replace COW = 338 if Country=="Malta "	
	replace COW = 338 if Country=="MALTA"
	replace COW = 338 if Country=="malta"

	replace COW = 221 if Country=="Monaco"
	replace COW = 221 if Country=="MONACO"

	replace COW = 435 if Country=="Mauritania"
	replace COW = 435 if Country=="Mauritania "
	replace COW = 435 if Country=="MAURITANIA"

	* Malaysia *
	replace Country ="Malaysia" if regexm(Country,["Malaysia"])
	replace Country ="Malaysia" if regexm(Country,["MALAYSIA"])	
	replace COW = 820 if Country=="Malaysia"
	replace COW = 820 if Country=="MALAYSIA"
	replace COW = 820 if Country=="Malayasia" 
	replace COW = 820 if Country=="Federation of Malaya"
	
	* Mauritius
	replace Country ="Mauritius" if regexm(Country,["Mauritius"])	
	replace Country ="Mauritius" if regexm(Country,["MAURITIUS"])		
	replace COW = 590 if Country=="Mauritius"
	replace COW = 590 if Country=="Mauritius "
	replace COW = 590 if Country=="MAURITIUS"

	* Mexico
	replace Country ="Mexico" if regexm(Country,["Mexico"])
	replace Country ="Mexico" if regexm(Country,["MEXICO"])	
	replace COW = 70 if Country=="Mexico"
	replace COW = 70 if Country=="mexico"
	replace COW = 70 if Country=="MEXICO"
	
	* Moldova *
	replace Country ="Moldova" if regexm(Country,["Moldova"])
	replace Country ="Moldova" if regexm(Country,["MOLDOVA"])
	replace COW = 359 if Country=="Moldova"
	replace COW = 359 if Country=="Moldavia"
	replace COW = 359 if Country=="MOLDOVA"
	replace COW = 359 if Country=="Republic of Moldova"
	replace COW = 359 if Country=="Moldova, Republic of" 
	replace COW = 359 if Country=="Moldova (Republic of)"
	
	* Mongolia *
	replace Country ="Mongolia" if regexm(Country,["Mongolia"])
	replace COW = 712 if Country=="Mongolia"
	replace COW = 712 if Country=="MONGOLIA"
	
	* Montenegro *
	*replace Country ="Montenegro" if regexm(Country,["Montenegro"])
	replace COW = 341  if Country=="Montenegro"
	replace COW = 341  if Country=="MONTENEGRO"
	replace COW = 341  if Country=="THE REPUBLIC OF MONTENEGRO"
	
	* Morocco
	replace Country ="Morocco" if regexm(Country,["Morocco"])
	replace Country ="Morocco" if regexm(Country,["MOROCCO"])	
	replace COW = 600 if Country=="Morocco"
	replace COW = 600 if Country=="Morocco "
	replace COW = 600 if Country=="MOROCCO"
	replace COW = 600 if Country=="Morocco***"
	replace COW = 600 if Country=="Western Sahara"	
	
	* Mozambique 
	replace Country ="Mozambique" if regexm(Country,["Mozambique"])
	replace Country ="Mozambique" if regexm(Country,["MOZAMBIQUE"])		
	replace COW = 541 if Country=="Mozambique"
	replace COW = 541 if Country=="Mozambique "
	replace COW = 541 if Country=="MOZAMBIQUE"
	
	* Myanmar *
	replace Country ="Myanmar" if regexm(Country,["Myanmar"])
	replace Country ="Myanmar" if regexm(Country,["BURMA"])	
	replace COW = 775 if Country=="Myanmar"
	replace COW = 775 if Country=="MYANMAR" 
	replace COW = 775 if Country=="Myanmar (Burma)"
	replace COW = 775 if Country=="Burma/Myanmmar"
	replace COW = 775 if Country=="Burma"
	replace COW = 775 if Country=="Burma "
	replace COW = 775 if Country=="BURMA"	
	replace COW = 775 if Country=="MYANMAR (BURMA)"

									*******
									/* N */
									*******
	*Namibia *								
	replace COW = 565 if Country=="Namibia"
	replace COW = 565 if Country=="Namibia "
	replace COW = 565 if Country=="NAMIBIA"
	
	* Nepal *
	replace Country ="Nepal" if regexm(Country,["Nepal"])
	replace Country ="Nepal" if regexm(Country,["NEPAL"])	
	replace COW = 790 if Country=="Nepal"
	replace COW = 790 if Country=="Nepa"
	replace COW = 790 if Country=="NEPAL"
	
	* Nicaragua *
	replace Country ="Nicaragua" if regexm(Country,["Nicaragua"])
	replace Country ="Nicaragua" if regexm(Country,["NICARAGUA"])	
	replace COW = 93 if Country=="Nicaragua"
	replace COW = 93 if Country=="Nicarcagua"
	replace COW = 93 if Country=="NICARAGUA"

	* Niger
	
	replace COW = 436 if Country=="Niger"
	replace COW = 436 if Country=="Niger "
	replace COW = 436 if Country=="NIGER"
	replace COW = 436 if Country=="NIGER "	
	
	* Nigeria *
	replace Country ="Nigeria" if regexm(Country,["Nigeria"])
	replace Country ="Nigeria" if regexm(Country,["NIGERIA"])	
	replace COW = 475 if Country=="Nigeria"
	replace COW = 475 if Country=="Nigeria "
	replace COW = 475 if Country=="NIGERIA"
	replace COW = 475 if Country=="nigeria"
	replace COW = 475 if Country=="Biafra"

	* Netherlands *
	* replace Country ="Netherlands" if regexm(Country,["Netherlands"])
	replace COW = 210 if Country=="Netherlands"
	replace COW = 210 if Country=="THE NETHERLANDS"
	replace COW = 210 if Country=="THE NETHERLANDS "	
	replace COW = 210 if Country=="the Netherlands"
	replace COW = 210 if Country=="NETHERLANDS"
	replace COW = 210 if Country=="NETHERLANDS1"	
	replace COW = 210 if Country=="THE NETHERLANDS1"
	replace COW = 210 if Country=="THE NETHERLANDS"	
	replace COW = 210 if Country=="Netherlands, the"
	replace COW = 210 if Country=="Netherlands, The"
	replace COW = 210 if Country=="NL"
	replace COW = 210 if Country=="The Netherlands"
	replace COW = 210 if Country=="The Netherlands "	
	
	* New Zealand *
	replace Country ="New Zealand" if regexm(Country,["New Zealand"])
	replace COW = 920 if Country=="New Zealand"
	replace COW = 920 if Country=="NEW ZEALAND"
	
	* Norway *
	replace Country ="Norway" if regexm(Country,["Norway"])		
	replace Country ="Norway" if regexm(Country,["NORWAY"])			
	replace COW = 385 if Country=="Norway"
	replace COW = 385 if Country=="Norway "
	replace COW = 385 if Country=="NORWAY"
	
	* Nauru *
	replace COW = 970 if Country=="Nauru"
	

								*******
								/* O */
								*******
	
	replace COW = 698 if Country=="Oman"
	replace COW = 698 if Country=="Oman "
	replace COW = 698 if Country=="OMAN"

								*******
								/* P */
								*******

	replace COW = 986 if Country=="Palau"
	replace COW = 986 if Country=="PALAU"

	replace COW = 666 if Country=="Palestine"

	* Panama *
	replace Country ="Panama" if regexm(Country,["Panama"])
	replace COW = 95 if Country=="Panama"
	replace COW = 95 if Country=="PANAMA"
	* Poland *
	replace Country ="Poland" if regexm(Country,["Poland"])
	replace Country ="Poland" if regexm(Country,["POLAND"])	
	replace COW = 290 if Country=="Poland"
	replace COW = 290 if Country=="POLAND"
	* Pakistan *
	replace Country ="Pakistan" if regexm(Country,["Pakistan"])
	replace Country ="Pakistan" if regexm(Country,["PAKISTAN"])	
	replace COW = 770 if Country=="Pakistan"
	replace COW = 770 if Country=="PAKISTAN"
	* Papua New Guinea *
	replace Country ="Papua New Guinea" if regexm(Country,["Papua New Guinea"])
	replace COW = 910 if Country=="Papua New Guinea"
	replace COW = 910 if Country=="PAPUA NEW GUINEA"
	replace COW = 910 if Country=="PAPUA NEW"
	replace COW = 910 if Country=="P. N. Guinea"
	
	* Paraguay *
	replace Country ="Paraguay" if regexm(Country,["Paraguay"])
	replace COW = 150 if Country=="Paraguay"
	replace COW = 150 if Country=="PARAGUAY"
	* Peru *
	replace Country ="Peru" if regexm(Country,["Peru"])
	replace COW = 135 if Country=="Peru"
	replace COW = 135 if Country=="PERU"
	* Philippines *
	replace Country ="Philippines" if regexm(Country,["Philippines"])
	replace Country ="Philippines" if regexm(Country,["THE PHILIPPINES"])	
	replace COW = 840 if Country=="Philippines"
	replace COW = 840 if Country=="PHILIPPINES"
	replace COW = 840 if Country=="THE PHILIPPINES"	
	replace COW = 840 if Country=="Phillipines"
	replace COW = 840 if Country=="Philippines "
	replace COW = 840 if Country=="Phillippines"
	replace COW = 840 if Country=="Filipino"
	* Portugal *
	replace Country ="Portugal" if regexm(Country,["Portugal"])
	replace Country ="Portugal" if regexm(Country,["PORTUGAL"])	
	replace COW = 235 if Country=="Portugal"
	replace COW = 235 if Country=="PORTUGAL"

	/* Q */
	replace Country ="Qatar" if regexm(Country,["Qatar"])	
	replace Country ="Qatar" if regexm(Country,["QATAR"])		
	replace COW = 694 if Country=="Qatar"
	replace COW = 694 if Country=="Qatar "	
	replace COW = 694 if Country=="QATAR"

	/* R */
	replace Country ="Rwanda" if regexm(Country,["Rwanda"])	
	replace Country ="Rwanda" if regexm(Country,["RWANDA"])		
	replace COW = 517 if Country=="Rwanda"
	replace COW = 517 if Country=="Rwanda "
	replace COW = 517 if Country=="RWANDA"

	replace Country ="Romania" if regexm(Country,["Romania"])
	replace COW = 360 if Country=="Romania"
	replace COW = 360 if Country=="romania"
	replace COW = 360 if Country=="ROMANIA"
	replace COW = 360 if Country=="ROMANIA "
	replace COW = 360 if Country=="Romsnia"
	replace COW = 360 if Country=="omania"

	* Russia/USSR *
	replace Country ="Russia" if regexm(Country,["Russia"])	
	replace Country ="Russia" if regexm(Country,["RUSSIA"])		
	replace COW = 365 if Country=="Russian Federation"
	replace COW = 365 if Country=="Russia"
	replace COW = 365 if Country=="Rusisa"
	replace COW = 365 if Country=="Russia "
	replace COW = 365 if Country=="Russa"
	replace COW = 365 if Country=="RUSSIA"
	replace COW = 365 if Country=="USSR"
	replace COW = 365 if Country=="Soviet Union"
	replace COW = 365 if Country=="Rusia"
	replace COW = 365 if Country=="USSR (Russia)"
	replace COW = 365 if Country=="SOVIET UNION"
	replace COW = 365 if Country=="Russian Federation##"
	
									*******
									/* S */
									*******

	replace COW = 331 if Country=="San Marino"
	replace COW = 331 if Country=="SAN MARINO"
	* Saudi Arabia *
	replace Country ="Saudi Arabia" if regexm(Country,["Saudi Arabia"])	
	replace Country ="Saudi Arabia" if regexm(Country,["SAUDI ARABIA"])		
	replace COW = 670 if Country=="Saudi Arabia"
	replace COW = 670 if Country=="Saudi Arabia "	
	replace COW = 670 if Country=="Saudia Arabia"
	replace COW = 670 if Country=="SAUDI ARABIA"
	replace COW = 670 if Country=="Saudi Arabi"

	* Singapore *
	replace Country ="Singapore" if regexm(Country,["Singapore"])
	replace COW = 830 if Country=="Singapore"
	replace COW = 830 if Country=="SINGAPORE"

	replace Country ="Slovenia" if regexm(Country,["Slovenia"])
	replace Country ="Slovenia" if regexm(Country,["SLOVENIA"])	
	replace COW = 349 if Country=="Slovenia"
	replace COW = 349 if Country=="SLOVENIA"
	replace COW = 349 if Country=="slovenia"
	
	*Spain
	replace Country ="Spain" if regexm(Country,["Spain"])
	replace Country ="Spain" if regexm(Country,["SPAIN"])		
	replace COW = 230 if Country=="Spain"
	replace COW = 230 if Country=="Spain "	
	replace COW = 230 if Country=="Spain"	
	replace COW = 230 if Country=="SPAIN"

	* Sweden
	replace Country ="Sweden" if regexm(Country,["Sweden"])
	replace Country ="Sweden" if regexm(Country,["SWEDEN"])	
	replace COW = 380 if Country=="Sweden"
	replace COW = 380 if Country=="Sweden "	
	replace COW = 380 if Country=="SWEDEN"
	replace COW = 380 if Country=="Sweeden"

	* Switzerland
	replace Country ="Switzerland" if regexm(Country,["Switzerland"])
	replace Country ="Switzerland" if regexm(Country,["SWITZERLAND"])		
	replace COW = 225 if Country=="Switzerland"
	replace COW = 225 if Country=="Switzerland "	
	replace COW = 225 if Country=="SWITZERLAND"
	replace COW = 225 if Country=="Switzlerland"
	
	* Seychelles *
	replace Country ="Seychelles" if regexm(Country,["Seychelles"])
	replace COW = 591 if Country=="Seychelles"
	replace COW = 591 if Country=="SEYCHELLES"
	
	* Slovakia *
	replace Country ="Slovakia" if Country=="SLOVAK REPUBLIC "
	replace COW = 317 if Country=="Slovakia"
	replace COW = 317 if Country=="Slovak Republic"
	replace COW = 317 if Country=="SLOVAK REPUBLIC"
	replace COW = 317 if Country=="Slovak Rep."
	replace COW = 317 if Country=="Slovak Republic "	
 	replace COW = 317 if Country=="SLOVAKIA"
	
	* South Africa *
	replace Country ="South Africa" if regexm(Country,["South Africa"])	
	replace Country ="South Africa" if regexm(Country,["SOUTH AFRICA"])		
	replace COW = 560 if Country=="South Africa"
	replace COW = 560 if Country=="South Africa "
	replace COW = 560 if Country=="SOUTH AFRICA"
	replace COW = 560 if Country=="Sout Africa"
	replace COW = 560 if Country=="Transkei"
	replace COW = 560 if Country=="Venda"
	replace COW = 560 if Country=="S. Africa"	

	* Nevis *
	replace Country ="St. Kitts and Nevis" if regexm(Country,["Nevis"])
	replace Country ="St. Kitts and Nevis" if regexm(Country,["Kitts"])
	replace COW = 60 if Country=="St. Kitts and Nevis"
	replace COW = 60 if Country=="ST. KITTS AND NEVIS"
	replace COW = 60 if Country=="Saint Kitts-Nevis" 
	replace COW = 60 if Country=="St. Kitts And Nevis"
	replace COW = 60 if Country=="St. Kitts-Nevis"
	replace COW = 60 if Country=="Saint Kitts and Nevis"
	replace COW = 60 if Country=="ST KITTS NEVIS"
 
	*St Lucia
	replace COW = 56 if Country=="St. Lucia"
	replace COW = 56 if Country=="ST. LUCIA"
	replace COW = 56 if Country=="Saint Lucia"
	replace COW = 56 if Country=="St Lucia"
	replace COW = 56 if Country=="ST LUCIA"
	
	* St Vincent and the Grenadines
	replace Country ="St. Vincent and the Grenadines" if regexm(Country,["Vincent"])
	replace COW = 57 if Country=="St. Vincent and the Grenadines"
	replace COW = 57 if Country=="Saint Vincent & Grenadines"
	replace COW = 57 if Country=="ST. VINCENT & GRENS."
	replace COW = 57 if Country=="ST. VINCENT AND THE GRENADINES"
	replace COW = 57 if Country=="St. Vincent & Grens."
	replace COW = 57 if Country=="St.Vincent & Grenadines"
	replace COW = 57 if Country=="Saint Vincent and the Grenadines"
	replace COW = 57 if Country=="ST VINCENT"
 
	replace Country ="Sao Tome and Principe" if regexm(Country,["São Tomé and Príncipe"])
	replace COW = 403 if Country=="Sao Tome and Principe"
	replace COW = 403 if Country=="Sao Tome and Principe "
	replace COW = 403 if Country=="SAO TOME & PRINCIPE"
	replace COW = 403 if Country=="Sao Tome & Principe"
	replace COW = 403 if Country=="Sao Tome & Principe "
	replace COW = 403 if Country=="SAO TOME"
	
	* Senegal
	replace Country ="Senegal" if regexm(Country,["Senegal"])	
	replace Country ="Senegal" if regexm(Country,["SENEGAL"])		
	replace COW = 433 if Country=="Senegal"
	replace COW = 433 if Country=="Senegal "
	replace COW = 433 if Country=="SENEGAL"

	* Sierra Leone
	replace COW = 451 if Country=="Sierra Leone"
	replace COW = 451 if Country=="Sierra Leone "
	replace COW = 451 if Country=="SIERRA LEONE"
	replace COW = 451 if Country=="sierra leone"
	replace COW = 451 if Country=="SIERRA LEON"
 
	* Solomon Islands *
	replace Country ="Solomon Islands" if regexm(Country,["Solomon"])
	replace COW = 940 if Country=="Solomon Islands"
	replace COW = 940 if Country=="SOLOMON ISLANDS"
	replace COW = 940 if Country=="Solomon Island" 
	replace COW = 940 if Country=="SOLOMON"
	
	* Somalia *
	replace Country ="Somalia" if regexm(Country,["Somalia"])
	replace COW = 520 if Country=="Somalia"
	replace COW = 520 if Country=="SOMALIA"
	replace COW = 520 if Country=="Somaliland"
	
	* Sudan *
	replace COW = 625 if Country=="SUDAN "	
	replace COW = 625 if Country=="Sudan"
	replace COW = 625 if Country=="SUDAN"
	replace COW = 625 if Country=="Sudan "
	replace COW = 625 if Country=="Sudan*"
	replace COW = 625 if Country=="Sudan (North)"
	replace COW = 625 if Country=="Sudan-North"
	replace COW = 625 if Country=="Sudan (-2011)"
	replace COW = 625 if Country=="Sudan (2012-)"

	* South Sudan *
	replace COW = 626 if Country=="South Sudan"
	replace COW = 626 if Country=="SOUTH SUDAN"	
	replace COW = 626 if Country=="South Sudan "
	replace COW = 626 if Country=="South Sudan*"
	replace COW = 626 if Country=="South Sudan'"
	
	
	* Samoa *
 
	replace COW = 990 if Country=="Samoa"
	replace COW = 990 if Country=="SAMOA"
	
	* Serbia & Montenegro *
	replace Country ="Serbia & Montenegro" if regexm(Country,["Serbia & Montenegro"])
	replace Country ="Serbia & Montenegro" if regexm(Country,["Serbia & Montenegro"])
	replace Country ="Serbia & Montenegro" if Country=="Serbia-Montenegro  "
	replace COW = 345 if Country=="Serbia I Montenegro"
	replace COW = 345 if Country=="Serbia and Montenegro"
	replace COW = 345 if Country=="Serbia & Montenegro"
	replace COW = 345 if Country=="Serbia-Montenegro"
	replace COW = 345 if Country=="SERBIA & MONTENEGRO"
	replace COW = 345 if Country=="Serbia"
	replace COW = 345 if Country=="SERBIA"	
	replace COW = 345 if Country=="Serbia, Republic of"
	replace COW = 345 if Country=="Serbia "
	replace COW = 345 if Country=="Republic of Serbia"
	replace COW = 345 if Country=="Yugoslavia (Serbia)"
	replace COW = 345 if Country=="Serbia (Yugoslavia)"	
	replace COW = 345 if Country=="Serbia Montenegro"
	replace COW = 345 if Country=="SERBIA AND MONTENEGRO"	
	replace COW = 345 if Country=="Serbia/Montenegro"
	replace COW = 345 if Country=="Yugoslavia, FR/Union of Serbia and Montenegro"
	replace COW = 345 if Country=="THE REPUBLIC OF SERBIA"	
	replace COW = 345 if Country=="Serbia *"	
	
	* Sri Lanka *
	replace Country ="Sri Lanka" if regexm(Country,["Sri Lanka"])
	replace Country ="Sri Lanka" if regexm(Country,["SRI LANKA"])	
	replace COW = 780 if Country=="Sri Lanka"
	replace COW = 780 if Country=="SRI LANKA"
	replace COW = 780 if Country=="Ceylon"
	
	*Suriname
	replace Country ="Suriname" if regexm(Country,["SURINAME"])
	replace Country ="Suriname" if regexm(Country,["SURINAME"])	
	replace COW = 115 if Country=="Suriname"
	replace COW = 115 if Country=="SURINAME"
	
	* Swaziland *
	replace COW = 572 if Country=="Swaziland"
	replace COW = 572 if Country=="Swaziland "
	replace COW = 572 if Country=="SWAZILAND"
	replace COW = 572 if Country=="Eswatini"
	replace COW = 572 if Country=="e-Swatini"
	replace COW = 572 if Country=="eSwatini"
	replace COW = 572 if Country=="Eswatini (Kingdom of)"
	
	* Syria
	replace COW = 652 if Country=="Syrian Arab Republic"
	replace COW = 652 if Country=="SYRIAN ARAB REPUBLIC"
	replace COW = 652 if Country=="Syria"
	replace COW = 652 if Country=="Syrian Arab Rep"
	replace COW = 652 if Country=="Syrian Arab Rep."
	replace COW = 652 if Country=="SYRIA"
	
									*******
									/* T */
									*******
									
	replace Country ="Taiwan" if regexm(Country,["Taiwan"])
	replace Country ="Taiwan" if regexm(Country,["TAIWAN"])	
	replace COW = 713 if Country=="Chinese Taipei" //Taiwan //
	replace COW = 713 if Country=="Taiwan"
	replace COW = 713 if Country=="TAIWAN"
	
	replace Country ="Trinidad and Tobago" if regexm(Country,["Trinidad"])
	replace COW = 52 if Country=="Trinidad and Tobago"
	replace COW = 52 if Country=="Trinidad And Tobago"
	replace COW = 52 if Country=="TRINIDAD AND TOBAGO"
	replace COW = 52 if Country=="Trinidad & Tobago"
	replace COW = 52 if Country=="Trinidad"
	replace COW = 52 if Country=="TRINIDAD"
	
	* Turkey
	replace Country ="Turkey" if regexm(Country,["TURKEY"])	
	replace Country ="Turkey" if regexm(Country,["TURKEY"])	
	replace COW = 640 if Country=="Turkey"
	replace COW = 640 if Country=="Turkey "
	replace COW = 640 if Country=="TURKEY"
	
	* Tajikistan *
	replace Country ="Tajikistan" if regexm(Country,["Tajikistan"])
	replace Country ="Tajikistan" if regexm(Country,["Tajikstan"])
	replace Country ="Tajikistan" if regexm(Country,["TAJIKISTAN"])
	replace COW = 702 if Country=="Tajikistan"
	replace COW = 702 if Country=="TAJIKISTAN"
	replace COW = 702 if Country=="Taljikistan"
	replace COW = 702 if Country=="Taijikistan"

	*Tanzania
	replace Country ="Tanzania" if regexm(Country,["Tanzania"])	
	replace Country ="Tanzania" if regexm(Country,["TANZANIA"])		
	replace COW = 510 if Country=="Tanzania"
	replace COW = 510 if Country=="Tanzania "
	replace COW = 510 if Country=="TANZANIA"
	replace COW = 510 if Country=="Tanzania, United Republic of" 
	replace COW = 510 if Country=="United Republic of Tanzania"
	replace COW = 510 if Country=="Tanzania (United Republic of)"
	replace COW = 510 if Country=="Tanzania Uni Rep"
	replace COW = 510 if Country=="United Rep. of Tanzania"
	replace COW = 510 if Country=="Zanzibar"
	replace COW = 510 if Country=="Tanganyika"	
	replace COW = 510 if Country=="Tanzania, United Rep. of "
	replace COW = 510 if Country=="Tanzania United Republic of"
	
	* Timor-Leste *
	replace Country ="East Timor" if regexm(Country,["East Timor"])
	replace COW = 860 if Country=="Timor-Leste"
	replace COW = 860 if Country=="Timor Leste"
	replace COW = 860 if Country=="TIMOR-LESTE"	
	replace COW = 860 if Country=="EAST TIMOR"		
	replace COW = 860 if Country=="Timor-Leste "	
	replace COW = 860 if Country=="East Timor"
	replace COW = 860 if Country=="Timor.Leste"
	replace COW = 860 if Country=="TimorLeste"	
	
	* Togo
	replace Country ="Togo" if regexm(Country,["Togo"])	
	replace Country ="Togo" if regexm(Country,["TOGO"])		
	replace COW = 461 if Country=="Togo"
	replace COW = 461 if Country=="Togo "
	replace COW = 461 if Country=="TOGO"
	
	
	* Thailand *
	replace Country ="Thailand" if regexm(Country,["Thailand"])
	replace Country ="Thailand" if regexm(Country,["THAILAND"])	
	replace COW = 800 if Country=="Thailand"
	replace COW = 800 if Country=="THAILAND"
	* Tonga *
	replace Country ="Tonga" if regexm(Country,["Tonga"])
	replace COW = 955 if Country=="Tonga"
	replace COW = 955 if Country=="TONGA"
	* Tunisia *
	replace COW = 616 if Country=="Tunisia"
	replace COW = 616 if Country=="Tunisia "
	replace COW = 616 if Country=="TUNISIA"
	replace COW = 616 if Country=="Tunesia"
	* Turkmenistan *
	replace COW = 701 if Country=="Turkmenistan"
	replace COW = 701 if Country=="Turkmenistan "
	replace COW = 701 if Country=="TURKMENISTAN"
	
	* Tuvalu *
	replace Country ="Tuvalu" if regexm(Country,["Tuvalu"])
	replace COW = 947 if Country=="Tuvalu"
	replace COW = 947 if Country=="TUVALU"
	
									*******
									/* U */
									*******
	* Uganda *						
	replace Country ="Uganda" if regexm(Country,["Uganda"])	
	replace Country ="Uganda" if regexm(Country,["UGANDA"])		
	replace COW = 500 if Country=="Uganda & Burundi"	
	replace Country="Uganda" if Country=="Uganda & Burundi"						
	replace COW = 500 if Country=="Uganda"
	replace COW = 500 if Country=="Uganda "
	replace COW = 500 if Country=="UGANDA"
	
	* Ukraine *
	replace Country ="Ukraine" if regexm(Country,["Ukraine"])
	replace Country ="Ukraine" if regexm(Country,["UKRAINE"])	
	replace COW = 369 if Country=="Ukraine"
	replace COW = 369 if Country=="UKRAINE"
	replace COW = 369 if Country=="Ukkraine"
	replace COW = 369 if Country=="Ukriane"

	* Uzbekistan *
	replace Country ="Uzbekistan" if regexm(Country,["Uzbekistan"])
	replace Country ="Uzbekistan" if regexm(Country,["UZBEKISTAN"])	
	replace COW = 704 if Country=="Uzbekistan"
	replace COW = 704 if Country=="Uzbekistan "
	replace COW = 704 if Country=="Ubekistan"
	replace COW = 704 if Country=="UZBEKISTAN"
	
	* United Arab Emirates *
	replace Country ="United Arab Emirates" if regexm(Country,["United Arab Emirates"])
	replace Country ="United Arab Emirates" if regexm(Country,["UNITED ARAB EMIRATES"])	
	replace COW = 696 if Country=="United Arab Emirates"
	replace COW = 696 if Country=="Unied Arab Emirates"
	replace COW = 696 if Country=="UNITED ARAB EMIRATES"
	replace COW = 696 if Country=="Dubai"
	replace COW = 696 if Country=="UAE"
	replace COW = 696 if Country=="U.A.E."
	replace COW = 696 if Country=="UNITED ARAB E"
	
	* UK *
	replace Country ="United Kingdom" if regexm(Country,["United Kingdom"])	
	replace Country ="United Kingdom" if regexm(Country,["UNITED KINGDOM"])		
	replace COW = 200 if Country=="Great Britain" 
	replace COW = 200 if Country=="United Kingdom"
	replace COW = 200 if Country=="United Kingdom "	
	replace COW = 200 if Country=="Scotland"
	replace COW = 200 if Country=="United Kingdomraine"
	replace COW = 200 if Country=="UNITED KINGDOM"
	replace COW = 200 if Country=="UK"
	replace COW = 200 if Country=="UK "	
	replace COW = 200 if Country=="U.K."
	replace COW = 200 if Country=="Northern Ireland"
	replace COW = 200 if Country=="Britain"
	replace COW = 200 if Country=="United Kingdom of Great Britain and Northern Ireland"
	replace COW = 200 if Country=="Great Britian"
	replace COW = 200 if Country=="England"
	replace COW = 200 if Country=="United Kingdon"
	replace COW = 200 if Country=="Great Birtain"
	replace Country="United Kingdom" if COW==200
	replace COW = 200 if Country=="United Kingdom (England and Wales)"
	replace COW = 200 if Country=="United Kingdom (Scotland)"
	
	
	* USA *
	replace COW = 2 if Country=="United States"
	replace COW = 2 if Country=="UNITED STATES"
	replace COW = 2 if Country=="United States of America"
	replace COW = 2 if Country=="usa"
	replace COW = 2 if Country=="USA"
	replace COW = 2 if Country=="UNITED STATES OF AMERICA"	
	replace COW = 2 if Country=="US"
	replace COW = 2 if Country=="U.S."
	replace COW = 2 if Country=="U.S"
	replace COW = 2 if Country=="  U.S."
	replace COW = 2 if Country=="The United States Of America"
	replace COW = 2 if Country=="United States "
	replace Country="United States" if COW==2

	* Uruguay *
	replace Country = "Uruguay" if regexm(Country,["Uruguay"])
	replace COW = 165 if Country=="Uruguay"
	replace COW = 165 if Country=="URUGUAY"

										*******
										/* V */
										*******
	* Vanuatu *
	replace COW = 935 if Country=="Vanuatu"
	replace COW = 935 if Country=="VANUATU"
	
	* Vietnam *
	replace COW = 816 if Country=="Vietnam"
	replace COW = 816 if Country=="Vietnam "
	replace COW = 816 if Country=="Viet Nam"
	replace COW = 816 if Country=="VIETNAM"	
	replace COW = 816 if Country=="VIETNAM "		
	
	replace COW = 816 if Country=="Vietnam, N."
	replace COW = 816 if Country=="Vietnam, North"	
	replace COW = 816 if Country=="Vietnam DR"	
	replace COW = 816 if Country=="VIETNAM NORTH"
	replace COW = 816 if Country=="Democratic Republic of Vietnam"
	
	
	
	replace COW = 817 if Country=="Vietnam, S."
	replace COW = 817 if Country=="Vietnam REP"	
	replace COW = 817 if Country=="VIETNAM SOUTH"
	replace COW = 817 if Country=="Vietnam, South"
	replace COW = 817 if Country=="Republic of Vietnam"
 
	* Venezuela *
	replace Country ="Venezuela" if regexm(Country,["Venezuela"])
	replace Country ="Venezuela" if regexm(Country,["VENEZUELA"])	
	replace COW = 101 if Country=="Venezuela" 
	replace COW = 101 if Country=="Venezuela "
	replace COW = 101 if Country=="venezuela"
	replace COW = 101 if Country=="Venezuela, RB"
	replace COW = 101 if Country==" Venezuela, RB"
	replace COW = 101 if Country=="VENEZUELA, REP. BOL."
	replace COW = 101 if Country=="Venezuela, Rep. Bol."
	replace COW = 101 if Country=="Venezuela (Bolivarian Republic of)"
	replace COW = 101 if Country=="VENEZUELA"
	
										*******
										/* Y */
										*******
	* Yemen *
	replace Country ="Yemen" if Country=="Yemen " 
	replace COW = 679 if Country=="Yemen" 
	replace COW = 679 if Country=="North and South Yeman"
	replace COW = 679 if Country=="Yemen, Rep."
	replace COW = 679 if Country==" Yemen, Rep."
	replace COW = 679 if Country=="YEMEN, REPUBLIC OF"
	replace COW = 679 if Country=="Yemen, Republic Of"
	replace COW = 679 if Country=="Yemen, Republic of"
	replace COW = 679 if Country=="Yemen Republic" 
	replace COW = 679 if Country=="YEMEN"
	replace COW =679 if regexm(Country,["Yemen"]) & COW==0	
	
	* North Yemen *
	replace COW = 678 if Country=="Yemen Arab Republic"
	replace COW = 678 if Country=="North Yemen"
	replace COW = 678 if Country=="Yemen, North                  "
	replace COW = 678 if Country=="Yemen, N."
	replace COW = 678 if Country=="Yemen AR"
	replace COW = 678 if Country=="YEMEN NORTH"
	replace COW = 678 if Country=="Yemen, North"
	replace COW = 678 if Country=="Yemen (AR)"	
	
	* South Yemen *
	replace COW = 680 if Country=="Yemen, South                  "
	replace COW = 680 if Country=="Yemen, S."
	replace COW = 680 if Country=="Yemen People's Republic"
	replace COW = 680 if Country=="Yemen PDR"
	replace COW = 680 if Country=="Yemen PDR (So. Yemen)"
 	replace COW = 680 if Country=="YEMEN SOUTH"
 	replace COW = 680 if Country=="Yemen, South" 
	replace COW = 680 if Country=="Yemen (PDR)"
	
	
	* Yugoslavia *
	replace COW = 345 if Country=="Yugoslavia"
	
	replace COW = 345 if Country=="Yugoslavia (former)"
	replace COW = 345 if Country=="Former Yugoslavia"
	replace COW = 345 if Country=="Yugoslavia (Serbia & Montenegro)" 
	replace COW = 345 if Country=="FRY"
	replace COW = 345 if Country=="The Federal Republic of Yugoslavia"
	replace COW = 345 if Country=="Federal Republic of Yugoslavia"	
	replace COW = 345 if Country=="The Federal Republic of Yugoslavia "	
	replace COW = 345 if Country=="Former Yugoslavia, Socialist Fed. Rep."	
	replace COW = 345 if Country=="YUGOSLAVIA"
	replace COW = 345 if Country=="Yugoslavia, SFR (1943-1992)"
	
							*******
							/* Z */
							*******
	
	** Zambia
	replace Country ="Zambia" if regexm(Country,["Zambia"])
	replace Country ="Zambia" if regexm(Country,["ZAMBIA"])	
	replace COW = 551 if Country=="Zambia"
	replace COW = 551 if Country=="ZAMBIA"
	
	* Zimbabwe *
	replace Country ="Zimbabwe" if regexm(Country,["Zimbabwe"])
	replace Country ="Zimbabwe" if regexm(Country,["ZIMBABWE"])	
	replace COW = 552 if Country=="Zimbabwe"
	replace COW = 552 if Country=="ZIMBABWE"
	replace COW = 552 if Country=="Zimbabwe  SEE FOOTNOTE"
	replace COW = 552 if Country=="Rhodesia"
	
	rename COW ccode

	************
	** LABELS **
	************
	
	/* label drop ccode 

	label define ccode 700	Afghanistan
	label define ccode 	339	Albania , add
	label define ccode 	615	Algeria, add
	label define ccode 	232	Andorra, add
	label define ccode 	540	Angola, add
	label define ccode 	58	"Antigua & Barbuda", add
	label define ccode 	160	Argentina, add
	label define ccode 	371	Armenia, add
	label define ccode 	900	Australia, add
	label define ccode 	305	Austria, add
	label define ccode 	300	"Austria-Hungary", add
	label define ccode 	373	Azerbaijan, add
	label define ccode 	267	Baden, add
	label define ccode 	31	Bahamas, add
	label define ccode 	692	Bahrain, add
	label define ccode 	771	Bangladesh, add
	label define ccode 	53	Barbados, add
	label define ccode 	245	Bavaria, add
	label define ccode 	370	Belarus, add
	label define ccode 	211	Belgium, add
	label define ccode 	80	Belize, add
	label define ccode 	434	Benin, add
	label define ccode 	760	Bhutan, add
	label define ccode 	145	Bolivia, add
	label define ccode 	346	"Bosnia & Herzegovina", add
	label define ccode 	571	Botswana, add
	label define ccode 	140	Brazil, add
	label define ccode 	835	Brunei, add
	label define ccode 	355	Bulgaria, add
	label define ccode 	439	"Burkina Faso", add
	label define ccode 	516	Burundi, add
	label define ccode 	811	Cambodia   , add
	label define ccode 	471	Cameroon , add
	label define ccode 	20	Canada , add
	label define ccode 	402	"Cape Verde" , add
	label define ccode 	482	"Central African Republic" , add
	label define ccode 	483	Chad , add
	label define ccode 	155	Chile , add
	label define ccode 	710	China , add
	label define ccode 	100	Colombia , add
	label define ccode 	581	Comoros , add
	label define ccode 	484	Congo , add
	label define ccode 	94	"Costa Rica" , add
	label define ccode 	344	Croatia , add
	label define ccode 	40	Cuba , add
	label define ccode 	352	Cyprus , add
	label define ccode 	316	"Czech Republic" , add
	label define ccode 	315	Czechoslovakia , add
	label define ccode 	490	"Congo, Dem. Rep.", add
	label define ccode 	390	Denmark , add
	label define ccode 	522	Djibouti , add
	label define ccode 	54	Dominica , add
	label define ccode 	42	"Dominican Republic" , add
	label define ccode 	860	"East Timor" , add
	label define ccode 	130	Ecuador , add
	label define ccode 	651	Egypt , add
	label define ccode 	92	"El Salvador" , add
	label define ccode 	411	"Equatorial Guinea" , add
	label define ccode 	531	Eritrea , add
	label define ccode 	366	Estonia , add
	label define ccode 	530	Ethiopia , add
	label define ccode 	987	Micronesia , add
	label define ccode 	950	Fiji , add
	label define ccode 	375	Finland , add
	label define ccode 	220	France , add
	label define ccode 	481	Gabon , add
	label define ccode 	420	Gambia , add
	label define ccode 	372	Georgia , add
	label define ccode 	265	"German Democratic Republic" , add
	label define ccode 	260	"German Federal Republic" , add
	label define ccode 	255	Germany , add
	label define ccode 	452	Ghana , add
	label define ccode 	350	Greece , add
	label define ccode 	55	Grenada , add
	label define ccode 	90	Guatemala , add
	label define ccode 	438	Guinea , add
	label define ccode 	404	"Guinea-Bissau" , add
	label define ccode 	110	Guyana , add
	label define ccode 	41	Haiti , add
	label define ccode 	240	Hanover , add
	label define ccode 	91	Honduras , add
	label define ccode 	310	Hungary , add
	label define ccode 	395	Iceland , add
	label define ccode 	750	India , add
	label define ccode 	850	Indonesia , add
	label define ccode 	630	Iran , add
	label define ccode 	645	Iraq , add
	label define ccode 	205	Ireland , add
	label define ccode 	666	Israel , add
	label define ccode 	325	Italy , add
	label define ccode 	437	"Cote d'Ivoire" , add
	label define ccode 	51	Jamaica , add
	label define ccode 	740	Japan , add
	label define ccode 	663	Jordan  , add
	label define ccode 	705	Kazakhstan , add
	label define ccode 	501	Kenya , add
	label define ccode 	946	Kiribati , add
	label define ccode 	730	Korea , add
	label define ccode 	347	Kosovo , add
	label define ccode 	690	Kuwait , add
	label define ccode 	703	Kyrgyzstan , add
	label define ccode 	812	Laos , add
	label define ccode 	367	Latvia , add
	label define ccode 	660	Lebanon , add
	label define ccode 	570	Lesotho , add
	label define ccode 	450	Liberia , add
	label define ccode 	620	Libya , add
	label define ccode 	223	Liechtenstein , add
	label define ccode 	368	Lithuania , add
	label define ccode 	212	Luxembourg , add
	label define ccode 	343	Macedonia , add
	label define ccode 	580	Madagascar , add
	label define ccode 	553	Malawi , add
	label define ccode 	820	Malaysia , add
	label define ccode 	781	Maldives , add
	label define ccode 	432	Mali , add
	label define ccode 	338	Malta , add
	label define ccode 	983	"Marshall Islands" , add
	label define ccode 	435	Mauritania , add
	label define ccode 	590	Mauritius , add
	label define ccode 	280	"Mecklenburg Schwerin" , add
	label define ccode 	70	Mexico , add
	label define ccode 	332	Modena , add
	label define ccode 	359	Moldova , add
	label define ccode 	221	Monaco , add
	label define ccode 	712	Mongolia , add
	label define ccode 	341	Montenegro , add
	label define ccode 	600	Morocco , add
	label define ccode 	541	Mozambique , add
	label define ccode 	775	Myanmar , add
	label define ccode 	565	Namibia , add
	label define ccode 	970	Nauru , add
	label define ccode 	790	Nepal , add
	label define ccode 	210	Netherlands , add
	label define ccode 	920	"New Zealand", add
	label define ccode 	93	Nicaragua , add
	label define ccode 	436	Niger , add
	label define ccode 	475	Nigeria , add
	label define ccode 	731	"North Korea" , add
	label define ccode 	385	Norway , add
	label define ccode 	698	Oman , add
	label define ccode 	770	Pakistan , add
	label define ccode 	986	Palau , add
	label define ccode 	95	Panama , add
	label define ccode 	327	"Papal States" , add
	label define ccode 	910	"Papua New Guinea" , add
	label define ccode 	150	Paraguay , add
	label define ccode 	335	Parma , add
	label define ccode 	135	Peru , add
	label define ccode 	840	Philippines , add
	label define ccode 	290	Poland , add
	label define ccode 	235	Portugal , add
	label define ccode 	694	Qatar , add
	label define ccode 	817	"Vietnam, Rep." , add
	label define ccode 	360	Romania , add
	label define ccode 	365	Russia , add
	label define ccode 	517	Rwanda , add
	label define ccode 	990	Samoa , add
	label define ccode 	331	"San Marino" , add
	label define ccode 	403	"Sao Tome & Principe" , add
	label define ccode 	670	"Saudi Arabia" , add
	label define ccode 	269	Saxony , add
	label define ccode 	433	Senegal , add
	label define ccode 	591	Seychelles , add
	label define ccode 	451	"Sierra Leone" , add
	label define ccode 	830	Singapore , add
	label define ccode 	317	Slovakia , add
	label define ccode 	349	Slovenia , add
	label define ccode 	940	"Solomon Islands" , add
	label define ccode 	520	Somalia , add
	label define ccode 	560	"South Africa" , add
	label define ccode 	732	 "Korea, Rep." , add
	label define ccode 	626	"South Sudan" , add
	label define ccode 	230	Spain , add
	label define ccode 	780	"Sri Lanka" , add
	label define ccode 	60	"St. Kitts & Nevis" , add
	label define ccode 	56	"St. Lucia" , add
	label define ccode 	57	"St. Vincent & the Grenadines" , add
	label define ccode 	625	Sudan , add
	label define ccode 	115	Suriname , add
	label define ccode 	572	Swaziland , add
	label define ccode 	380	Sweden , add
	label define ccode 	225	Switzerland , add
	label define ccode 	652	Syria , add
	label define ccode 	713	Taiwan , add
	label define ccode 	702	Tajikistan , add
	label define ccode 	510	Tanzania , add
	label define ccode 	800	Thailand , add
	label define ccode 	461	Togo , add
	label define ccode 	955	Tonga , add
	label define ccode 	52	"Trinidad & Tobago" , add
	label define ccode 	616	Tunisia , add
	label define ccode 	640	Turkey , add
	label define ccode 	701	Turkmenistan , add
	label define ccode 	337	Tuscany , add
	label define ccode 	947	Tuvalu , add
	label define ccode 	329	"Two Sicilies" , add
	label define ccode 	500	Uganda , add
	label define ccode 	369	Ukraine , add
	label define ccode 	696	"UAE" , add
	label define ccode 	200	"UK" , add
	label define ccode 	2	"USA" , add
	label define ccode 	165	Uruguay , add
	label define ccode 	704	Uzbekistan , add
	label define ccode 	935	Vanuatu , add
	label define ccode 	101	Venezuela , add
	label define ccode 	816	Vietnam , add
	label define ccode 	679	Yemen , add
	label define ccode 	551	Zambia , add
	label define ccode 552	Zimbabwe , add

	label values ccode ccode

